home *** CD-ROM | disk | FTP | other *** search
- // Defines the abilities of various Vector types
-
- #define Double_TYPE 1
- #define DComplex_TYPE 2
- #define FComplex_TYPE 3
- #define Float_TYPE 4
- #define Int_TYPE 5
-
- #if TYPE!=DComplex_TYPE
- #define HAS_MINMAX 1
- #define HAS_INCRDECR 1
- #define REGISTER register
- #else
- // Complexes won't fit in a register
- #define REGISTER
- #endif
-
- #if TYPE != Int_TYPE
- #define APPLY_MATH 1
- #define HAS_POW 1
- #define HAS_VARIANCE 1
- #define HAS_DIVIDE 1
- #define HAS_MEAN 1
- #endif
-
- #if TYPE==Double_TYPE || TYPE==Float_TYPE
- #define HAS_ATAN2 1
- #endif
-